package com.controller;

import java.util.Map;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import com.service.StatisticsService;

@Controller
public class StatisticController {
	StatisticsService service=new StatisticsService();
	@RequestMapping(value="/querytime.action",method=RequestMethod.POST)
	@ResponseBody
	public Map<String,Object> querytime(
			@RequestParam(value="date1") String date1,
			@RequestParam(value="date2") String date2
			){
		Map<String,Object> map=service.querytime(date1, date2);
		return map;
	}
}
